package cc.repository;

import cc.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * TODO
 *
 * @author My
 * @date 2021/7/6 14:21
 */
public interface RoomRepository extends JpaRepository<Room, Integer> {

    @Query("select s from  Room s where 1=1")
    List<Room> list();
}
